<include file="Admin@Public:header" />
<div class="container-fuid ">
	<table class="table">
		<thead>
			<tr>
				<th>名称</th>
				<th>类型</th>
				<th>排序</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="item">
				<tr>
					<td>{$item['name']}</td>
					<td>{$item['type']}</td>
					<td>{$item['sort']}</td>
					<td>
						<div class="btn-group">
							<a href="{:U('Wechat/Admin/eidt_menu',array('id'=>$item['id']))}" class="btn btn-default">修改</a>
							<a href="{:U('Wechat/Admin/del_menu',array('id'=>$item['id']))}" class="btn btn-danger">删除</a>
						</div>
					</td>
				</tr>
				<volist name="item['_child']" id="vo">
				<tr>
					<td>-->{$vo['name']}</td>
					<td>{$vo['type']}</td>
					<td>{$vo['sort']}</td>
					<td>
						<div class="btn-group">
							<a href="{:U('Wechat/Admin/eidt_menu',array('id'=>$vo['id']))}" class="btn btn-default">修改</a>
							<a href="{:U('Wechat/Admin/del_menu',array('id'=>$vo['id']))}" class="btn btn-danger">删除</a>
						</div>
					</td>
				</tr>
				</volist>
			</volist>
			<tr>
				<td colspan="4"><a href="{:U('Wechat/Admin/creatmenu')}" class="btn btn-info">生成菜单</a></td>
			</tr>
		</tbody>
	</table>
</div>
<include file="Admin@Public:footer" />